import request from '@/utils/request'

// 添加商品分类列表
export const addShopsort = (data) => request({
  url: '/biz/commodityClassification/addCommodityClassification',
  method: 'post',
  data
})
export const editShopsort = (data) => request({
  url: '/biz/commodityClassification/updateCommodityClassification',
  method: 'post',
  data
})
export const delShopsort = (data) => request({
  url: '/biz/commodityClassification/deleteCommodityClassification',
  method: 'post',
  data
})
///获取商品分类列表
export const getShopsort = (shopClassificationId) => request({
  url: `/biz/commodityClassification/getCommodityClassification/${shopClassificationId}`,
  method: 'post'
})

// 获取店铺类别表

export const getproductCategory = (data) => request({
  url: '/biz/shopClassification/pageShopClassification',
  method: 'post',
  data
})

// 添加店铺类别表
export const addShopClassification = (data) => request({
  url: '/biz/shopClassification/addShopClassification',
  method: 'post',
  data
})
// 删除
export const deleteShopClassification = (data) => request({
  url: '/biz/shopClassification/deleteShopClassification',
  method: 'post',
  data
})

// 修改店铺类别
export const updateShopClassification = (data) => request({
  url: '/biz/shopClassification/updateShopClassification',
  method: 'post',
  data
})